package designPattern.factory.sampleFactory;

//工厂类角色
public class Driver {
	public static Car driveCar(String s){
		if(s.equalsIgnoreCase("Benz")){
			return new Benz();
		}else if(s.equalsIgnoreCase("Bmw")){
			return new Bmw();
		}
		return null;
	}

}
